class CreateUploadFiles < ActiveRecord::Migration
  def self.up
    create_table :upload_files do |t|

      t.integer :article_id
      t.string :comment
      t.string :attachment_file_name
      t.string :attachment_content_type 
      t.string :attachment_file_type

      t.timestamps
    end
  end

  def self.down
    drop_table :upload_files
  end
end
